package geological_data_mgr
@util.DataSource("Common")
class ResourceFile
{
  String token
  String name
  String fileType
  String nt 
  String content
  int checked
  String aiReport
  String rawFile
  static objDesp = "name"
  static belongsTo = [:]
  static service = "resourceFile"
  static classLabel = "资源文件"
  static fields = [
    token:[label:"ID",listHide:true,ofKey:true],
    name:[label:"名称",h_query:false],
    checked:[label:"已校验",inList:[0:'未校对',1:'已校对']],
    fileType:[label:"类型",h_query:false,inList:['pdf':'pdf','txt':'纯文本','epub':'epub格式','md':'markdown格式','else':'其他']],
    content:[label:"内容",listHide:true,h_query:true,h_slot:'type="textarea" rows="30"'],
    aiReport:[label:"ai检测报告",listHide:true,h_query:true,h_slot:'type="textarea" rows="30"'],
    rawFile:[label:"原始文件",listHide:true,h_query:false],
    nt:[label:"备注",h_slot:'type="textarea" rows="10"'],
  ]
}
